package com.ioday01demo;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class ISRDemo {
    public static void main(String[] args) throws IOException {
        File file =new File("osw.txt");
        FileInputStream fis = new FileInputStream(file);
        InputStreamReader isr = new InputStreamReader(fis,StandardCharsets.UTF_8);

        int temp ;
        while ((temp=isr.read())!=-1){
            System.out.print((char)temp);
        }

        isr.close();
    }
}
